import request from '@/utils/request'

export function getEmployeeList(params) {
  return request({
    url: '/employee/page',
    method: 'get',
    params
  })
}

export function addEmployee(params) {
  return request({
    url: '/employee',
    method: 'POST',
    data: { ...params }
  })
}

export function enableEmployee(params) {
  return request({
    url: '/employee',
    method: 'put',
    data: { ...params }
  })
}

export function editEmployee(params) {
  return request({
    url: '/employee',
    method: 'put',
    data: { ...params }
  })
}
